home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / NeXTtext / text / text.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-06  |  1.0 KB  |  51 lines

  1. #ifndef _TEXT_H_
  2. #define _TEXT_H_
  3.  
  4.  
  5. typedef unsigned long ulong;
  6. typedef enum {
  7.     _textErrorNoError, _textErrorNoMemory, _textErrorInternal, 
  8.     _textErrorArguments, _textErrorSystem = 100
  9. } _textErrorType;
  10.  
  11.  
  12. #import <sys/stat.h>
  13. #import <sys/param.h>
  14.  
  15. #import "text/fileutil.h"
  16. #import "text/pathutil.h"
  17. #import "text/search.h"
  18. #import "text/spell.h"
  19. #import "text/strutil.h"
  20. #import "text/webster.h"
  21. #import "text/wftable.h"
  22. #import "text/ix.h"
  23.  
  24.  
  25.  
  26. #define countArray(a)    (sizeof(a) / sizeof((a)[0]))
  27.  
  28.  
  29. extern int _textErrors;
  30. extern _textErrorType _textErrorNo;
  31.  
  32.  
  33. /* functions for error reporting */
  34. extern void textError(const char *fmt, ...);
  35. extern int _textError(_textErrorType errNo, const char *fmt, ...);
  36.  
  37.  
  38. /* functions for generating arrays of strings */
  39. extern FreeStringArray(char **a);
  40. extern char **ArrayFromString(char *s);
  41. extern char **ArrayFromFile(char *file);
  42.  
  43.  
  44. /* pipe and file management functions */
  45. extern isapipe(int fd);
  46. extern FILE *sopen(char *name, char *mode);
  47. extern iwait(int fd, unsigned long timeout);
  48.  
  49.  
  50. #endif
  51.